<?php /* Template_ 2.2.4 2011/09/30 13:09:41 E:\PHP\www\sagapo\template_\default\_index.html 000003323 */ 
$TPL_menu_1=empty($TPL_VAR["menu"])||!is_array($TPL_VAR["menu"])?0:count($TPL_VAR["menu"]);?>
<!DOCTYPE html>
<html>
	<head>
		<title> sagapo project </title>
		<meta charset="utf-8" />
		<link type="text/css" rel="stylesheet" href="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/css/default.css" />
		<link type="text/css" rel="stylesheet" href="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/css/jquery-ui.css" />
		
		<script src="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/js/jquery.min.js"></script>
		<script src="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/js/jquery-ui.min.js"></script>
		<script src="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/js/jquery.validate.min.js"></script>
		<script src="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/js/jquery.validate.ko.js"></script>
		<script src="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>/js/common.js"></script>
		<script>
			$(function() {
				
				$(".main_menu").click(function() {
					sagapo.section($(this));
					return false;
				});
				
				$("#left").click(function() {
					sagapo.section_icon();
					return false;
				});
				
				$("#header .image .login").click(function() {
					loadDialogLogin('/member/login', null, $(this).position());
					return false;
				});
				
				$("#header .image .refresh").click(function() {
					location.replace(location.href);
					return false;
				});
				
				// 버튼 stylesheet 입히기
				$("button", ".button" ).button();
			});
		</script>
	</head>

	<body>
		<div id="wrap">
			<header id="header" data-role="header">
				<h1 class="title">가나다라맙사아.<!-- akddd &amp; gaeri --></h1>
				<div class="logined">
<?php if($TPL_VAR["CFG"]->USER){?>
					<div class="info"><strong><?php echo $TPL_VAR["CFG"]->USER->name?></strong>님 반갑습니다.</div>
					<div class="image">
						<a href="/member/doLogout" class="logout">
							<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/iconset/logout.png" alt="로그아웃" />
						</a>
					</div>
<?php }else{?>
					<div class="image">
						<a href="/member/doLogout" class="login">
							<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/iconset/login.png" alt="로그인" />
						</a>
					</div>
<?php }?>
					
					<div class="image">
						<a href="<?php echo $TPL_VAR["CFG"]->PATH->WWW?>" class="refresh">
							<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/iconset/refresh.png" alt="새로고침" />
						</a>
					</div>
				</div>
			</header>
			
			<div id="body">
				<aside id="left">
					<menu>
						<ul>
<?php if($TPL_menu_1){foreach($TPL_VAR["menu"] as $TPL_V1){?>
							<li class="<?php if($TPL_V1->current){?>current<?php }else{?>ui-bar-c<?php }?>">
								<a href="<?php echo $TPL_V1->mn_url?>" class="main_menu">
									<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/iconset/<?php echo $TPL_V1->mn_icon?>" alt="<?php echo $TPL_V1->mn_name?>" title="<?php echo $TPL_V1->mn_name?>" class="icon" />
									<?php echo $TPL_V1->mn_name?>

								</a>
							</li>
<?php }}?>
						</ul>
					</menu>
				</aside>
				<div id="container">
<?php $this->print_("body",$TPL_SCP,1);?>

				</div>
			</div>
		</div>
	</body>
</html>